package com.beijing.action.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;

import com.beijing.baseaction.BaseAction;
import com.beijing.entity.Members;
import com.beijing.service.memberService.IMemberService;

@Scope(value = "prototype")
@SuppressWarnings({ "serial", "rawtypes" })
public class TestSaveMembersToDB extends BaseAction {

    @Autowired
    private IMemberService memberService;
    
    private List<Members> list;

    public String testMybatis() {
        Members member = new Members(null, "jack", 25, 1, "jack@beijing.com");
        boolean flag = memberService.insertMembersToDB(member);
        System.out.println(flag);
        return "";
    }

    // ==========================get/set=======================================

    public List<Members> getList() {
        return list;
    }

    public void setList(List<Members> list) {
        this.list = list;
    }

}
